/* DIABOX – společné styly spodní části webu */
/* Původní skrytí nepoužívaného systémového banneru */
  .homepage-banners {
    display: none !important;
  }

  /* Na úvodní stránce je nahrazuje nový blok hodnocení obchodu. */
  body.in-index .homepage-box.welcome-wrapper,
  body.in-index .latest-contribution-wrapper,
  body.in-index .latest-contribution-wrapper--large,
  body.in-index .latest-contribution-rating,
  body.in-index .box-productRating {
    display: none !important;
  }

  /* =========================
     Hodnocení obchodu
     ========================= */
  .diabox-store-reviews {
    display: none;
    width: calc(100% - 40px);
    max-width: 1400px;
    box-sizing: border-box;
    margin: 48px auto 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #17212b;
    font-family: "Source Sans 3", sans-serif;
  }

  body.in-index .diabox-store-reviews.is-ready {
    display: block;
  }

  .diabox-store-reviews__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
  }

  .diabox-store-reviews__title {
    margin: 0 0 7px;
    color: #111820;
    font-family: "Exo 2", sans-serif;
    font-size: 29px;
    font-weight: 400;
    line-height: 1.2;
  }

  .diabox-store-reviews__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: #667681;
    font-size: 14px;
    line-height: 1.3;
  }

  .diabox-store-reviews__score {
    color: #17212b;
    font-size: 19px;
    font-weight: 700;
  }

  .diabox-stars {
    color: #c68000;
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 1;
    white-space: nowrap;
  }

  .diabox-store-reviews__all-link {
    display: inline-flex;
    min-height: 40px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border: 1px solid #1076b7;
    background: #ffffff;
    color: #1076b7 !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  }

  .diabox-store-reviews__all-link:hover,
  .diabox-store-reviews__all-link:focus {
    background: #1076b7;
    box-shadow: 0 3px 9px rgba(16, 118, 183, 0.18);
    color: #ffffff !important;
    outline: none;
  }

  .diabox-store-reviews__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .diabox-review-card {
    display: flex;
    min-width: 0;
    min-height: 158px;
    box-sizing: border-box;
    flex-direction: column;
    padding: 18px;
    border: 1px solid #d7e6f0;
    border-radius: 3px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 74, 122, 0.05);
  }

  .diabox-review-card__name {
    overflow: hidden;
    margin: 0 0 5px;
    color: #17212b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .diabox-review-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 11px;
    color: #7b8992;
    font-size: 12px;
    line-height: 1.25;
  }

  .diabox-review-card__meta .diabox-stars {
    font-size: 15px;
  }

  .diabox-review-card__text {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #44545f;
    font-size: 13px;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
  }

  /* =========================
     Nové zápatí
     ========================= */
  #diabox-custom-footer {
    display: none;
  }

  #footer #diabox-custom-footer.is-ready {
    display: block;
  }

  .diabox-footer-main {
    box-sizing: border-box;
    margin: 0;
    padding: 43px 34px 31px;
    border-top: 1px solid #d7e6f0;
    background: #f2f8fc;
    color: #33434d;
    font-family: "Source Sans 3", sans-serif;
  }

  .diabox-footer-main__inner {
    max-width: 1280px;
    margin: 0 auto;
  }

  .diabox-footer-main__grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1.15fr;
    gap: 40px;
  }

  .diabox-footer-main h3 {
    margin: 0 0 14px;
    color: #111820;
    font-family: "Exo 2", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
  }

  .diabox-footer-main__brand {
    margin: 0 0 8px;
    color: #111820;
    font-family: "Exo 2", sans-serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1;
  }

  .diabox-footer-main__claim {
    max-width: 270px;
    margin: 0;
    color: #586a75;
    font-size: 14px;
    line-height: 1.5;
  }

  .diabox-footer-main ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .diabox-footer-main li {
    margin: 0 0 7px;
  }

  .diabox-footer-main a {
    color: #44545f;
    text-decoration: none !important;
  }

  .diabox-footer-main a:hover,
  .diabox-footer-main a:focus {
    color: #1076b7;
    text-decoration: underline !important;
    outline: none;
  }

  .diabox-footer-main__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 9px;
    color: #44545f;
    font-size: 14px;
    line-height: 1.4;
  }

  .diabox-footer-main__contact-icon {
    width: 18px;
    flex: 0 0 18px;
    color: #1076b7;
    text-align: center;
  }

  .diabox-footer-main__small {
    margin: 10px 0 0;
    color: #667681;
    font-size: 13px;
    line-height: 1.45;
  }

  .diabox-footer-main__payment-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 13px;
  }

  .diabox-footer-main__payment-logos img {
    display: block;
    width: auto;
    max-width: 48px;
    height: 22px;
    object-fit: contain;
  }

  .diabox-footer-main__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #d7e6f0;
  }

  .diabox-footer-main__motto {
    margin: 0;
    color: #667681;
    font-size: 13px;
    line-height: 1.4;
  }

  .diabox-footer-main__socials {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .diabox-footer-main__socials a {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid #c9dce8;
    border-radius: 50%;
    background: #ffffff;
    color: #1076b7;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .diabox-footer-main__socials a:hover,
  .diabox-footer-main__socials a:focus {
    background: #1076b7;
    color: #ffffff;
    text-decoration: none !important;
  }

  .diabox-footer-main__socials svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  #footer .footer-bottom {
    box-sizing: border-box;
    margin-top: 0;
    padding-top: 15px;
    padding-bottom: 15px;
    border-top: 1px solid #e3edf3;
  }

  @media (max-width: 1024px) {
    .diabox-store-reviews__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .diabox-footer-main__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 768px) {
    .diabox-store-reviews {
      width: calc(100% - 24px);
      margin: 34px auto 30px;
      padding: 0;
    }

    .diabox-store-reviews__header {
      display: block;
      margin-bottom: 18px;
    }

    .diabox-store-reviews__title {
      font-size: 25px;
    }

    .diabox-store-reviews__all-link {
      width: 100%;
      margin-top: 16px;
    }

    .diabox-store-reviews__grid {
      grid-template-columns: 1fr;
    }

    .diabox-review-card {
      min-height: 0;
    }

    .diabox-footer-main {
      padding: 34px 22px 25px;
    }

    .diabox-footer-main__grid {
      grid-template-columns: 1fr;
      gap: 28px;
    }

    .diabox-footer-main__bottom {
      align-items: flex-start;
      flex-direction: column;
    }
  }
